home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Menu Bar Initialization
- Sent: 5/30/96 12:42 PM
- Received: 5/30/96 12:51 PM
- From: Mark Lanett, mlanett@meer.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >In converting our part to DR5, we have attempted to initialize the menubar
- >via resources as is done by the Draw part. When we make the
- >call ""GetMenuBar(ev)->InitializeFromResource(ev, kMenuBar);" we get the
- >assert "FW_CMenuItem::Read should never have been called").
- >Any ideas why? The following is the stack crawl from the assert.
-
- This is a terribly obscure ODFRC bug. Check your Menus.fr file to see if
- you have any dangling commas, like so:
-
-
- FW_RPullDownMenu {
- "My Menu" {
- FW_RTextItem (...),
- FW_RTextItem (...), <-- dangling comma!
- }
- }
-
- The last item should not have a comma. ODFRC will insert an empty *third*
- item here, using the base class for menu items. It is when this third dummy
- menu item gets read in that the base C++ class' Read member gets called.
-
- Nuke the comma and all will be well.
-
-
- Mark Lanett, ODF
-
-